import request from '@/utils/request'

// 查询日结算信息列表
export function listDailysettlement(query) {
  return request({
    url: '/business/dailysettlement/list',
    method: 'get',
    params: query
  })
}

// 查询日结算信息详细
export function getDailysettlement(id) {
  return request({
    url: '/business/dailysettlement/' + id,
    method: 'get'
  })
}

// 新增日结算信息
export function addDailysettlement(data) {
  return request({
    url: '/business/dailysettlement',
    method: 'post',
    data: data
  })
}

// 修改日结算信息
export function updateDailysettlement(data) {
  return request({
    url: '/business/dailysettlement',
    method: 'put',
    data: data
  })
}

// 删除日结算信息
export function delDailysettlement(id) {
  return request({
    url: '/business/dailysettlement/' + id,
    method: 'delete'
  })
}
